package com.gitee.wsl.common.ui.ext.color

import androidx.compose.ui.graphics.Color
import kotlin.random.Random

fun Color.Companion.random() = rgb(Random.nextInt(255), Random.nextInt(255), Random.nextInt(255))

fun Color.Companion.randomList(size:Int = Random.nextInt(6)) = buildList{
    (0 until size).forEach { _ ->
        add(Color.random())
    }
}